#include <malloc.h>
#include <stdlib.h>
#include <stdio.h>
#include <stdarg.h>
#include <errno.h>
#include <unistd.h>
#include <fcntl.h>
#include <signal.h>
#include <string.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <netinet/tcp.h>
#include <arpa/inet.h>
#include <sys/stat.h>
#include <sys/sendfile.h>
#include <sys/epoll.h>


#include "ds.h"
#include "net.h"

struct Server;
struct Event;
struct Response;
struct Task;
struct Upstream;
struct Conn;
struct Log;

#include "num_mod.h"
#include "def_mod.h"

#include "log.h"
#include "event.h"
#include "connection.h"
#include "response.h"
#include "httpd.h"
#include "request.h"
#include "linux_send.h"
#include "upstream.h"
#include "process.h"

#include "memcache.h"

extern Server *g_server;
extern pid_t g_Pid;
extern int g_Process;

extern sig_atomic_t  signal_reap;
extern sig_atomic_t  signal_sigio;
extern sig_atomic_t  signal_sigalrm;
extern sig_atomic_t  signal_terminate;
extern sig_atomic_t  signal_quit;
extern sig_atomic_t  signal_debug_quit;
